Continuous Glucose Monitoring (CGM)-based titration algorithm implemented in DiAs